/************************************************************
 * Copyright (C), 2022-2030, ripnano. Co., Ltd.
 * FileName:        form_device_notify.h
 * Author:          Dan Yin
 * Date:            2023-06-25
 * Description:     the class of device notify window
 * Version:         1.0.0.0
 **********************************************************/

#ifndef FORM_DEVICE_NOTIFY_H
#define FORM_DEVICE_NOTIFY_H

// add necessary includes here
#include "ui/defines/global.h"

namespace Ui {
class FormDeviceNotify;
}

class FormDeviceNotify : public QWidget
{
    Q_OBJECT

public:
    // Get an instance of "FormDeviceNotify" class, if exist, return it
    static FormDeviceNotify* getInstance(QWidget *pParent = nullptr);

signals:
    // The signal that refresh UI info
    void signalRefreshUI(bool bInit = false);

private slots:
    // The slot that refresh UI info
    void slotRefreshUI(bool bInit = false);

    // Save configuration info
    void on_pushButton_Save_clicked();

protected:
    // Triggers an event before it is switch language
    void changeEvent(QEvent *event);

private:
    // The default constructor
    explicit FormDeviceNotify(QWidget *parent = nullptr);

    // The default destructor
    virtual ~FormDeviceNotify();

    // After constructing object, initialize the object
    void _Initialze();

    // Init the window style
    void _InitUi();

private:
    Ui::FormDeviceNotify *ui;
};

#endif // FORM_DEVICE_NOTIFY_H
